package net.jiastudy.biz.assessment.entity;

import io.swagger.annotations.ApiModelProperty;
import net.jiastudy.biz.sys.entity.Dept;
import net.jiastudy.core.base.BaseEntity;

public class AssessmentDetail extends BaseEntity<AssessmentDetail> {
    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "年度")
    private Long year;

    @ApiModelProperty(value = "考核id")
    private Long assessmentId;

    @ApiModelProperty(value = "被考核部门")
    private Long assessmentedDeptId;

    @ApiModelProperty(value = "顶级任务id")
    private Long topTaskId;

    @ApiModelProperty(value = "顶级任务描述")
    private String topTaskDesc;

    @ApiModelProperty(value = "一级任务id")
    private Long firstTaskId;

    @ApiModelProperty(value = "一级任务描述")
    private String firstTaskDesc;

    @ApiModelProperty(value = "二级任务id")
    private Long secondTaskId;

    @ApiModelProperty(value = "二级任务描述")
    private String secondTaskDesc;

    @ApiModelProperty(value = "三级任务id")
    private Long thirdTaskId;

    @ApiModelProperty(value = "三级任务描述")
    private String thirdTaskDesc;

    @ApiModelProperty(value = "考核标准")
    private String assessmentStandard;

    @ApiModelProperty(value = "考核部门")
    private Long assessmentDeptId;

    @ApiModelProperty(value = "权重")
    private Integer weight;

    @ApiModelProperty(value = "seq")
    private Integer seq;

    public Long getAssessmentId() {
        return assessmentId;
    }

    public void setAssessmentId(Long assessmentId) {
        this.assessmentId = assessmentId;
    }

    public Long getAssessmentDeptId() {
        return assessmentDeptId;
    }

    public void setAssessmentDeptId(Long assessmentDeptId) {
        this.assessmentDeptId = assessmentDeptId;
    }

    public String getAssessmentDeptName() {
        if (null != assessmentDeptId) {
            Dept dept = new Dept();
            dept.setId(assessmentDeptId);
            dept = dept.selectById();

            return dept.getName();
        }

        return "";
    }

    public Long getTopTaskId() {
        if (null == topTaskId) {
            return (long) 0;
        }
        return topTaskId;
    }

    public void setTopTaskId(Long topTaskId) {
        this.topTaskId = topTaskId;
    }

    public Integer getSeq() {
        return seq;
    }

    public void setSeq(Integer seq) {
        this.seq = seq;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getFirstTaskId() {
        if (null == firstTaskId) {
            return (long) 0;
        }

        return firstTaskId;
    }

    public void setFirstTaskId(Long firstTaskId) {
        this.firstTaskId = firstTaskId;
    }

    public Long getSecondTaskId() {
        if (null == secondTaskId) {
            return (long) 0;
        }
        return secondTaskId;
    }

    public void setSecondTaskId(Long secondTaskId) {
        this.secondTaskId = secondTaskId;
    }

    public Long getThirdTaskId() {
        if (null == thirdTaskId) {
            return (long) 0;
        }
        return thirdTaskId;
    }

    public void setThirdTaskId(Long thirdTaskId) {
        this.thirdTaskId = thirdTaskId;
    }

    public String getAssessmentStandard() {
        return assessmentStandard;
    }

    public void setAssessmentStandard(String assessmentStandard) {
        this.assessmentStandard = assessmentStandard;
    }

    public Integer getWeight() {
        return weight;
    }

    public void setWeight(Integer weight) {
        this.weight = weight;
    }

    public Long getYear() {
        return year;
    }

    public void setYear(Long year) {
        this.year = year;
    }

    public Long getAssessmentedDeptId() {
        return assessmentedDeptId;
    }

    public void setAssessmentedDeptId(Long assessmentedDeptId) {
        this.assessmentedDeptId = assessmentedDeptId;
    }

    public String getTopTaskDesc() {
        return topTaskDesc;
    }

    public void setTopTaskDesc(String topTaskDesc) {
        this.topTaskDesc = topTaskDesc;
    }

    public String getFirstTaskDesc() {
        return firstTaskDesc;
    }

    public void setFirstTaskDesc(String firstTaskDesc) {
        this.firstTaskDesc = firstTaskDesc;
    }

    public String getSecondTaskDesc() {
        return secondTaskDesc;
    }

    public void setSecondTaskDesc(String secondTaskDesc) {
        this.secondTaskDesc = secondTaskDesc;
    }

    public String getThirdTaskDesc() {
        return thirdTaskDesc;
    }

    public void setThirdTaskDesc(String thirdTaskDesc) {
        this.thirdTaskDesc = thirdTaskDesc;
    }
}
